#!/usr/bin/python

import sys

import spidermonkey

rt = spidermonkey.Runtime()
rt.switch_tracing(1)

alist = ["alertlist"]
cx = rt.new_context(alertlist=alist)

f = open(sys.argv[1])
jscript = f.read()

cx.execute(jscript+";1>1;")

print "RESULTS:"
print alist
